package web.zz.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import web.zz.bean.User;
import web.zz.dao.UserDao;

@Service
public class UserService {
    @Autowired
    private UserDao userDao;

//    public boolean hasMatchUser(String username,String password){
//        int matchCount = userDao.getMatchCOunt(username,password);
//        return matchCount > 0;
//
//    }

    public User findUser(String username){
        return userDao.findUser(username);
    }
}
